<% fields_for person do |fp| %>
  <tr>
    <td class="label"><%= fp.label Person.human_attribute_name(:name) %></td>
    <td><%= fp.text_field :name %></td>

    <td class="label"><%= fp.label Person.human_attribute_name(:middle_name) %></td>
    <td><%= fp.text_field :middle_name %></td>

    <td rowspan="3"><%= image_tag person.avatar.url(:thumb) %></td>
  </tr>

  <tr>
    <td class="label"><%= fp.label Person.human_attribute_name(:patronymic) %></td>
    <td><%= fp.text_field :patronymic %></td>

    <td class="label"><%= fp.label Person.human_attribute_name(:matronymic) %></td>
    <td><%= fp.text_field :matronymic %></td>
  </tr>

  <tr>
    <td class="label"><%= fp.label Person.human_attribute_name(:dob) %></td>
    <td><%= fp.date_select :dob, {:use_short_month => true, :start_year => 1900, :end_year => Time.now.year} %></td>

    <td class="label"><%= fp.label Person.human_attribute_name(:avatar) %></td>
    <td><%= fp.file_field :avatar %></td>
  </tr>

<% end %>